﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DBLibrary
{
    public class Album : PicasaLiteDLL
    {
        private int id, idclient;
        private String name;
        private DateTime dateCreation;

        /// <summary>
        /// Normal constructor
        /// </summary>
        /// <param name="id">ID of the album. Each album has an unique ID</param>
        /// <param name="idClient">Album's owner's ID</param>
        /// <param name="name">Album's name</param>
        /// <param name="dateCreation">Album's creation date</param>
        public Album(int id, int idClient, String name, DateTime dateCreation)
            : base()
        {
            this.id = id;
            this.idclient = idClient;
            this.name = name;
            this.dateCreation = dateCreation;
        }

        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        public int Idclient
        {
            get { return idclient; }
            set { idclient = value; }
        }

        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        public DateTime DateCreation
        {
            get { return dateCreation; }
            set { dateCreation = value; }
        }

        public override string ToString()
        {
            return name + " - " + dateCreation.Day + "/" + dateCreation.Month + "/" + dateCreation.Year;
        }
    }
}
